<template>
  <div>
      
      <v-add :obj="obj" ref="aa"></v-add>
      <v-list @dit="dit" ></v-list>
  </div>
</template>
<script>
import { mapGetters, mapActions } from "vuex";
import vAdd from './components/add.vue'
import vList from './components/list.vue'
export default {
  props: [],
  components: {
      vAdd,
      vList
  },
  data() {
    return {
       obj:{
           isTrue:false,
           isAdd:false
       }
    };
  },
  computed: {
    ...mapGetters({}),
  },
  methods: {
    ...mapActions({}),
    
    dit(id){
        this.obj.isTrue=true,
        this.obj.isAdd=true,
        this.$refs.aa.getone(id)
    }
  },
  mounted() {},
};
</script>
<style scoped>
</style>